import shopping.bag.Zh0202Bag;
import shopping.bag.Zh0202BigBag;
import shopping.bag.Zh0202MiddleBag;
import shopping.bag.littlebag.Zh0202LittleRedBag;
import shopping.bag.littlebag.Zh0202LittleWhiteBag;
import shopping.component.Zh0202Shopping;
import shopping.good.*;

/**
 * @author: zh
 * @date: 2021/11/18 11:30
 * @version: 1.0
 */
public class Client {
    public static void main(String[] args) {
        //定义一些物品
        Zh0202Shopping z1, z2, z3, z4, z5, z6, z7, z8, z9;
        //定义袋子
        Zh0202Bag b1, b2, b3, b4;
        //用 1 个红色小袋子装了 2 包衡阳特产（单价 25 元）、1 张衡阳地图（单价5.8元）
        z1 = new Zh0202HySpecialty();
        z2 = new Zh0202HySpecialty();
        z3 = new Zh0202HyMap();
        b1 = new Zh0202LittleRedBag();
        b1.add(z1);
        b1.add(z2);
        b1.add(z3);
        //用 1 个白色小袋子装了 2 包祁东黄花菜（单价 48 元）和 2 瓶常宁山茶油（单价 180 元）
        z4 = new Zh0202QdDayLily();
        z5 = new Zh0202QdDayLily();
        z6 = new Zh0202CnCamelliaOil();
        z7 = new Zh0202CnCamelliaOil();
        b2 = new Zh0202LittleWhiteBag();
        b2.add(z4);
        b2.add(z5);
        b2.add(z6);
        b2.add(z7);
        //用 1 个中袋子装了前面的红色小袋子和 1副羽毛球拍（单价 380 元）
        z8 = new Zh0202BadmintonRacket();
        b3 = new Zh0202MiddleBag();
        b3.add(z8);
        b3.add(b1);
        //用 1 个大袋子装了前面的中袋子、白色小袋子和 1 双鸿星尔克运动鞋（单价 198 元）
        z9 = new Zh0202ErkeSportsShoes();
        b4 = new Zh0202BigBag();
        b4.add(z9);
        b4.add(b3);
        b4.add(b2);
        //输出结果
        System.out.println(b4.buy());
    }
}
